hikey: Add development TBB support
authorTeddy Reed <teddy@prosauce.org>
Sat, 23 Jun 2018 02:23:36 +0000 (22:23 -0400)
committerTeddy Reed <teddy@prosauce.org>
Fri, 6 Jul 2018 11:54:38 +0000 (07:54 -0400)
commite59a3bffe465f5704ddcab15ce27d7acb475e1a4
tree007585603304f6342195e2970c60bf4d99af904e
parent0a15eb9cac9c179289b5837d252c37fa515ac2c8
hikey: Add development TBB support

This patch adds experimental support for TRUSTED_BOARD_BOOT to the
Hikey. This is adapted from the RPi3 and QEMU implementations.

Since the Hikey starts from BL2 the TRUSTED_BOARD_BOOT ROT begins there
too. When TRUSTED_BOARD_BOOT is defined, the BL1 build is skipped.

See the following example:

make \
 PLAT=hikey \
 BL33=u-boot.bin \
 SCP_BL2=mcuimage.bin \
 TRUSTED_BOARD_BOOT=1 \
 MBEDTLS_DIR=../../mbedtls \
 GENERATE_COT=1 \
 all fip

Signed-off-by: Teddy Reed <teddy.reed@gmail.com>
plat/hisilicon/hikey/hikey_io_storage.c
plat/hisilicon/hikey/hikey_rotpk.S [new file with mode: 0644]
plat/hisilicon/hikey/hikey_tbbr.c [new file with mode: 0644]
plat/hisilicon/hikey/include/hikey_layout.h
plat/hisilicon/hikey/include/platform_def.h
plat/hisilicon/hikey/platform.mk